home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (4th Edition)
/
The Business Master - 4th Edition.iso
/
files
/
utilstem
/
powuser
/
pwr_user.doc
< prev
next >
Wrap
Text File
|
1993-01-25
|
18KB
|
601 lines
(C) Copyright, 1989 - 1993 PC SPECIALTIES INC
Changes map bug fix for novell & renamed to
dmap, so as not to conflict.
12/15/92
fmap, wk_check & error.bat added.
S H A R E W A R E L I C E N S E S T A T E M E N T
This software is protected by United States Copyright Law and this fully
functional copy has been provided for your use to evaluate its capabilities
in regards to your needs. It may be freely copied, distributed to
others and posted on computer bulletin board systems as desired provided the
program, documentation and the PC SPECIALTIES INC. copyright remain intact
and accompany each copy distributed. Distribution is encouraged so that
others may have the opportunity to evaluate the system for their
requirements.
This program is not "FREE" however and if you decide to continue the use of
it you are required to register with the PC SPECIALTIES INC. company by
completing the SHAREWARE REGISTRATION AND ORDER FORM contained in this manual
and return to PC SPECIALTIES INC. along with applicable payment.
When you do register the use of the program with PC SPECIALTIES INC. you
will receive the following:
- You will recieve and addition BONUS Program.
- The regular distribution copy of the program which will always
be the latest version and does not display the shareware notice
screen.
- You will be entitled to no cost telephone support from PC SPECIALTIES
INC. in regards to the use and any problems encountered when running
the program, and will be notified when new releases of the
program become available.
- You will be entitled to discounts of up to 25% on any future
shareware program registrations or software purchases from
PC SPECIALTIES INC..
S H A R E W A R E L I M I T E D W A R R A N T Y
THE PROGRAM(S) IS/ARE PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
QUALITY AND PERFORMANCE OF THE PROGRAM(S) IS WITH YOU. SHOULD
THE PROGRAM(S) PROVE DEFECTIVE, YOU (AND NOT PC SPECIALTIES
INC. OR AN AUTHORIZED DEALER) ASSUME THE ENTIRE COST OF
ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
PC SPECIALTIES INC
25500 LOIS LANE DR
SOUTHFIELD MI 48037-0211
U.S.A.
313-350-2365 FAX 313-350-0627
-------------------------------------------------------------------------------
S H A R E W A R E R E G I S T R A T I O N A N D O R D E R F O R M
NAME __________________________________________________________
ADDRESS _______________________________________________________
_______________________________________________________
CITY _____________________ STATE ________________ ZIP CODE ________
MACHINE PROGRAM(S) WILL BE USED ON: MAKE ___________ MODEL _________
OS _____ VER _____ Network _____________ VER _____ WINDOWS __ VER _____
HOW DID YOU OBTAIN THIS SHAREWARE COPY? __________________________________
DISKETTE SIZE: ____ 5 1/4" ___ 3 1/2"
PAYMENT OF 29.95 ________
SHIPPING & HANDLING 5.00 ________
RUSH ORDER 7.00 ________
OUTSIDE USA 8.00 ________
________
Visa __ Mastercard __ # ______ ______ ______ ______ Exp __________
Name On Card _________________________
THANK YOU FOR YOUR ORDER
THESE PROGRAMS ARE SHAREWARE, YOU MAY COPY THEM FREELY
BUT IF YOU USE THEM FOR MORE THAN 30 DAYS YOU MUST
REGISTER. SEND $ 29.95 + 5.00 S&H For all TO:
PC SPECIALTIES INC
25500 LOIS LANE DR
SOUTHFIELD MI 48037-0211
313-350-2365 FAX 313-350-0627
AM_Check
copyright PC SPECIALTIES INC
AM_Check
────────────────────────────────────────
PURPOSE
Used in autoexec to test if this is the first time the machine has been
turned on today. This is ideal for checking the harddisk for virus's.
DESCRIPTION
This program compares the date on the file AM_Check.dat file with the
system date. It sets the errorlevel to 2 if the file date is before the system
date, otherwise the errorlevel is set to 1.
TYPICAL BATCH FILE
cls
path = c:\dos;c:\bin;c:\
am_check
if errorlevel == 2 goto fast
chkdsk/f
scan c: /av
:fast
321
AM_Check
copyright PC SPECIALTIES INC
WK_Check
────────────────────────────────────────
PURPOSE
Used in autoexec to test how many days since it reset. This is ideal for
weekly backups.
DESCRIPTION
This program compares the date on the file wk_Check.dat file with the
system date. It sets the errorlevel to 1,2,3,4,5,6,7 depending on the
differance between wk_check.dat - currant date. After 7 days it resets the
wk_check.dat file to the currant date & returns a error level of 7.
TYPICAL BATCH FILE
cls
path = c:\dos;c:\bin;c:\
cd\tape
wk_check
if errorlevel == 7 goto fast
tape backup c:\*.* /s
:fast
tape backup c:\data\*.* /s
day_Chk
────────────────────────────────────────
PURPOSE
Used in autoexec to test how many days since it reset. This is ideal for
monthly backups.
DESCRIPTION
This program compares the date on the file day_chk.dat file with the
system date. It sets the errorlevel to 1 - 255 depending on the
differance between day_chk.dat - currant date. It never resets, to reset
erase the day_chk.dat file.
TYPICAL BATCH FILE
cls
path = c:\dos;c:\bin;c:\
cd\tape
day_chk
if errorlevel == 30 goto fast
tape backup c:\*.* /s
tape backup d:\*.* /s
tape backup f:\*.* /s
erase day_chk.dat
:fast
tape backup c:\data\*.* /s
Show & Bat_Help & Free & DirW
copyright PC SPECIALTIES INC
Show
────────────────────────────────────────
PURPOSE
To total all matching file specifications within a subdirectory.
DIRECTIONS
ACTUAL KEYSTROKES DESCRIPTION
show lists all files and totals.
show *.wks lists all Lotus files and total.
Bat_Help
────────────────────────────────────────
PURPOSE
Display all matching file specifications. Can be redirected into a batch
file and edited.
DIRECTIONS
KEYSTROKES DESCRIPTION
Bat_Help *.bas > fix.bat use a word processor to edit fix.bat.
Use the global search and replace to put
in the parameters needed.
Free
───────────────────────────────────────
PURPOSE
Shows disk space.
DirW
────────────────────────────────────────
PURPOSE
Column sorted file list.
DMap & Wait
copyright PC SPECIALTIES INC
DMap
────────────────────────────────────────
PURPOSE
To show subdirectory sizes.
ACTUAL KEYSTROKES DESCRIPTION
Dmap displays disk.
Dmap > prn prints disk.
FMap
────────────────────────────────────────
PURPOSE
To show subdirectory files.
ACTUAL KEYSTROKES DESCRIPTION
Fmap displays disk.
Fmap > prn prints disk.
Wait
────────────────────────────────────────
PURPOSE
Used in batch files to suspend an operation for a specific time.
TYPICAL BATCH FILE DESCRIPTION
type sign_on.msg displays msg on screen.
wait 30 waits 30 seconds.
cls clears screen.
cd\123 changes directory.
123 runs LOTUS.
Dos Learn (tm)
copyright PC SPECIALTIES INC
Dos Learn (tm)
────────────────────────────────────────
PURPOSE
To control the performance of a series of DOS commands called a batch.
Instead of typing this series of commands each time you want to perform them,
you enter the series once in a file called a batch file. You then call that
file as if it were a DOS command by entering its name at the DOS prompt. Batch
files allow you to tailor DOS to do new and more powerful commands to serve
you. This program makes writing batch files easy. Dos Learn (DL) keeps track
of your keystrokes so that you don't have to think ahead to write a batch
file. This batch file can be edited later by most word processors. This allows
you to experiment while in the learn mode, then just take out any mistakes.
DIRECTIONS
To use Dos Learn type "DL xyz.bat" (xyz.bat is the name of your batch
file). Dos Learn will display a prompt LEARN > and process any dos commands
(examples: cd\, dir, chkdsk). It will also run programs (i.e.. 123, pgraph,
wp, ws). When you are done type "xxx" (lower case) and DL will return to the
original subdirectory and write the batch file. Before you start, we recommend
that you make a subdirectory to hold you batch files. To do this enter:
cd\ <return>
md\ batch <return>
cd\batch <return>
included are several samples.
Sample I
ACTUAL KEYSTROKES DESCRIPTION
DL xyz starts Dos Learn program, xyz is the name
of the new batch file.
cd\123 changes to a directory called 123 (this
is where the Lotus program is kept).
123 name of program that starts Lotus.
────────────────────────────────────────────────────────────────
At this point you are in the Lotus program. Exit by typing /wqy.
────────────────────────────────────────────────────────────────
cd\batch changes back to batch subdirectory.
dir*.bat shows all batch files.
xxx 3 lower case x's end the Dos Learn
program.
Sample 2
KEYSTROKES DESCRIPTION
DL word starts Dos Learn program, word is the
name of the new batch file.
cd\wp50 changes to a directory called wp50
(this is where the Word Perfect Version
5.0 program is kept).
wp name of program that starts Word Perfect.
───────────────────────────────────────────────────────────────────────────────
At this point you are in the Word Perfect program. Exit by typing F7. Then yes.
───────────────────────────────────────────────────────────────────────────────
cd\batch changes back to batch subdirectory.
dir*.bat shows all batch files.
xxx 3 lower case xxx's end the Dos Learn
program.
Ask & AskT & AskW
copyright PC SPECIALTIES INC
Ask
────────────────────────────────────────
PURPOSE
This program gets a key from the User. It stores a number in memory
variable called errorlevel that can be tested (for more information on
errorlevels, see your DOS Reference Book). It is not case sensitive (it will
work on upper case or lower case letters, eg. a ). This allows you to ask
questions and get answers. It is to be called from a batch file. This program
uses easy to remember errorlevel codes. Starting with a (1) to z (26), then 0
(27) to 9 (36).
DIRECTIONS
Sample I
ACTUAL KEYSTROKES DESCRIPTION
(in Batch File)
cd\lotus changes directory.
echo Run Lotus (L) or PGRAPH (P) echo displays a statement on the screen.
ask calls the ask program and sets the
errorlevel.
if errorlevel == 38 go to error we can test the value of errorlevel
with the `if' command. The ask program
sets the errorlevel at 38 if a non
alphabet (a-z) or a non number (0-9) is
pressed. If the errorlevel is 38 we use
the DOS go to skip down to a label
called error (Notice the : before the
word error, this tells DOS it is a
label).
if errorlevel == 16 pgraph if the errorlevel = 16 (the letter p)
then run the program call pgraph. If
the errorlevel is not 16, then continue
to next line.
if error level == 12 123
:error
cd\batch processing continues at this line, the
program changes back to the subdirectory
called batch and does a directory of all
the batch files.
dir *. bat
Note: Always start on the high end and go down. Dos does not really check to
see if the errorlevel is equal. It checks to see if its greater than (>) or
equal to (==) the number.
Sample 2
cd\lotus
echo Run LOTUS (L) or PGRAPH (P)
ask
if errorlevel == 37 go to error
if errorlevel == 16 pgraph
if errorlevel == 12 123
:error
cd\batch
dir * .bat
errorlevel codes are set in descending order
a or A = 1 0 = 27
b or B = 2 1 = 28
c or C = 3 2 = 29
etc.
ask returns 38 if any other key was typed.
ASKT is a program that can be used to report what the errorlevel will be set to.
KEYSTROKES DESCRIPTION
askt
p The p was pressed, so the errorlevel
would be set to 16.
Note: askt will not return until a alphabet ("a -z" or "A - Z") or number ("0
- 9") has been pressed.
ASKW is a program that waits a set time.
KEYSTROKES DESCRIPTION
askw 60 waits 60 seconds, if no key is pressed
returns an errorlevel of 38.
Display (tm) & Get_Keys
copyright PC SPECIALTIES INC
Display(tm)
────────────────────────────────────────
PURPOSE
This program displays a text file on the screen. This allows you to make
a menu with a word processor. It is to be called from a batch file.
DIRECTIONS
To use Display type "display xyz.doc".
ACTUAL KEYSTROKES
cd\lotus
123
cd\batch
display sample.doc
Get_Keys
────────────────────────────────────────
PURPOSE
Sets errorlevel of both keys (numbers only). This is useful in a menu
batch file.
TYPICAL BATCH FILE
display 321.doc
get_keys
if errorlevel == 19 123
if errorlevel == 18 pgraph
etc.
Menu Maker & Yn
copyright PC SPECIALTIES INC
MKM
────────────────────────────────────────
PURPOSE
To provide a simple menu system. One that does not use any Ram (not Ram
resident) and will not interfere with any other programs. It is easy to use
and maintain.
DESCRIPTION
This program reads all the files (that are specified) in the current
directory. It then sorts a list and writes a menu screen to a file called
321.doc. Then it writes a batch file (321.bat) to display the menu screen and
process the choice. It is recommended that you make a subdirectory called
batch and keep your batch files there. Since this program generates its own
menu program you may use it on multiple pc's without royalties. You may not
transfer mkm.exe to other machines unless a site license has been obtained.
DIRECTIONS
ACTUAL KEYSTROKES DESCRIPTION
mkm *.bat only .bat files.
OR
mkm includes .com, .exe, and .bat files.
Yn
────────────────────────────────────────
PURPOSE
Used to get y or n from a user in batch mode.
TYPICAL BATCH FILE
Echo do you want to continue
yn
if errorlevel == 3 go to start
if errorlevel == 2 go to proceed
if errorlevel == 1 go to end
NOTE:
1 = N or n
2 = Y or y
3 = any other key
HIDDEN
────────────────────────────────────────
PURPOSE
To Show all hidden files on the hard disk (excludes F.A.T.) .
ACTUAL KEYSTROKES DESCRIPTION
Hidden